import java.awt.event.ComponentEvent;
import java.awt.event.ComponentListener;
import java.util.ArrayList;

import javax.swing.JFrame;
import javax.swing.JPanel;


public class testmain {

	public static void main(String[] args){
//		SystemAdmin admin = new SystemAdmin("zipp", "zippA", "password", null, null, null, null);
//		Doctor doctor = new Doctor("zipp", "zippD", "password", null, null, null, null);
//		Patient patient = new Patient("zipp", "zippP", "password", null, null, null, null, null, null);
//		Patient patient2 = new Patient("mzipp", "mzippP", "password", null, null, null, null, null, null);
//		Patient patient3 = new Patient("nzipp", "nzippP", "password", null, null, null, null, null, null);
//		
//		
//		UserDatabase.addUser(patient, UserDatabase.PATIENT);
//		UserDatabase.addUser(patient2, UserDatabase.PATIENT);
//		UserDatabase.addUser(patient3, UserDatabase.PATIENT);
//		UserDatabase.addUser(doctor, UserDatabase.DOCTOR);
//		UserDatabase.addUser(admin, UserDatabase.SYSTEM_ADMIN);
		
		DataSaveLoad.load();
		
		System.out.println(
				UserDatabase.searchUser("zipp", 
						UserDatabase.NAME_SEARCH).toString());
		
	}
	
	
}
